<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人资料 - 家族树</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
            margin: 0;
            padding: 0;
            padding-bottom: 83px; /* 为底部导航栏留出空间 */
        }
        
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 底部导航栏样式 */
        .tab-bar {
            height: 83px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #f0f0f0;
            padding-bottom: 20px; /* 适配iPhone底部安全区域 */
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 10px;
            padding: 8px 0;
        }
        
        .tab-item.active {
            color: #e86c60; /* 主题色 */
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        /* 个人资料卡片 */
        .profile-header {
            background-color: #e86c60;
            padding: 24px 16px;
            color: white;
            text-align: center;
            position: relative;
        }
        
        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid white;
            object-fit: cover;
            margin: 0 auto 12px;
        }
        
        .profile-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .profile-info {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 16px;
        }
        
        .profile-edit-button {
            position: absolute;
            top: 16px;
            right: 16px;
            color: white;
            font-size: 20px;
        }
        
        .profile-stats {
            display: flex;
            justify-content: space-around;
            background-color: white;
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 12px;
            color: #999;
        }
        
        /* 菜单列表 */
        .menu-section {
            background-color: white;
            margin: 16px 0;
        }
        
        .menu-section-title {
            font-size: 14px;
            color: #999;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-icon {
            width: 24px;
            color: #e86c60;
            margin-right: 12px;
            text-align: center;
        }
        
        .menu-label {
            flex: 1;
            font-size: 16px;
            color: #333;
        }
        
        .menu-arrow {
            color: #ccc;
        }
        
        /* 退出按钮 */
        .logout-button {
            background-color: white;
            color: #e86c60;
            text-align: center;
            padding: 16px;
            margin: 16px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
        }
        
        /* 长辈模式开关 */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #e86c60;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
    </style>
</head>
<body class="scroll-container-y">
    <!-- iOS状态栏 -->
    <div class="status-bar">
        <div class="time font-medium">9:41</div>
        <div class="icons flex">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>
    
    <!-- 个人资料头部 -->
    <div class="profile-header">
        <a href="settings.html" class="profile-edit-button">
            <i class="fas fa-cog"></i>
        </a>
        <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="用户头像" class="profile-avatar">
        <div class="profile-name">张明</div>
        <div class="profile-info">ID: 10086 · 第三代</div>
        <div class="flex justify-center">
            <a href="#" class="bg-white bg-opacity-20 text-white text-sm px-4 py-1 rounded-full">
                编辑个人资料
            </a>
        </div>
    </div>
    
    <!-- 统计数据 -->
    <div class="profile-stats">
        <div class="stat-item">
            <div class="stat-value">28</div>
            <div class="stat-label">家族成员</div>
        </div>
        <div class="stat-item">
            <div class="stat-value">12</div>
            <div class="stat-label">发布故事</div>
        </div>
        <div class="stat-item">
            <div class="stat-value">5</div>
            <div class="stat-label">创建活动</div>
        </div>
    </div>
    
    <!-- 我的家谱 -->
    <div class="menu-section">
        <div class="menu-section-title">我的家谱</div>
        
        <a href="family_tree.html" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-sitemap"></i>
            </div>
            <div class="menu-label">张氏家谱</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-plus-circle"></i>
            </div>
            <div class="menu-label">创建/加入家谱</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 我的内容 -->
    <div class="menu-section">
        <div class="menu-section-title">我的内容</div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-book"></i>
            </div>
            <div class="menu-label">我的故事</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-calendar-alt"></i>
            </div>
            <div class="menu-label">我的活动</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-bookmark"></i>
            </div>
            <div class="menu-label">我的收藏</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 设置 -->
    <div class="menu-section">
        <div class="menu-section-title">设置</div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-lock"></i>
            </div>
            <div class="menu-label">隐私设置</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-bell"></i>
            </div>
            <div class="menu-label">通知设置</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <div class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-user-plus"></i>
            </div>
            <div class="menu-label">长辈关怀模式</div>
            <label class="switch">
                <input type="checkbox">
                <span class="slider"></span>
            </label>
        </div>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-question-circle"></i>
            </div>
            <div class="menu-label">帮助与反馈</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
        
        <a href="#" class="menu-item">
            <div class="menu-icon">
                <i class="fas fa-info-circle"></i>
            </div>
            <div class="menu-label">关于我们</div>
            <div class="menu-arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>
    
    <!-- 退出登录 -->
    <a href="login.html" class="logout-button">
        退出登录
    </a>
    
    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <a href="home.html" class="tab-item">
            <i class="tab-icon fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="family_tree.html" class="tab-item">
            <i class="tab-icon fas fa-sitemap"></i>
            <span>家谱</span>
        </a>
        <a href="family_activity.html" class="tab-item">
            <i class="tab-icon fas fa-calendar-alt"></i>
            <span>活动</span>
        </a>
        <a href="family_stories.html" class="tab-item">
            <i class="tab-icon fas fa-book"></i>
            <span>故事</span>
        </a>
        <a href="profile.html" class="tab-item active">
            <i class="tab-icon fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
</body>
</html> 